package function

import scala.collection.mutable

object MutableMap {
  def main(args: Array[String]): Unit = {
    val map=mutable.Map("a"->1,"b"->"拉拉","c"->3)
    println(map)
    map.+=("a"->2)
    println(map)
    map("e")="十五"
    println(map)
    map.remove("a")
    map-="a"
    for (elem <- map) {
      println(elem)
    }
  }
}
